package com.ld.wms.thread;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class BackgroundThread {

    @Autowired
   private BackgroundThreadTasks backgroundThreadTasks;

    public void init() {
        log.info("Initializing background thread");
        new Thread(() -> backgroundThreadTasks.startCameraMonitor()).start();
    }


}
